package com.hmall.common.client;

import com.hmall.common.pojo.Order;
import com.hmall.common.pojo.OrderDetail;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PutMapping;

import java.util.List;

/**
 * @author 29143
 */
@FeignClient("orderservice")
public interface OrderClient {

    @GetMapping("/order/status")
    public List<Order> queryAllThirty();

    @PutMapping("/order/{orderId}")
    public void failedOrder(@PathVariable("orderId")Long orderId);

    @GetMapping("/order/findOrderDetail/{orderId}")
    public OrderDetail findOrderDetailByOrderId(@PathVariable("orderId")Long orderId);

}
